package com.zj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zj.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * 用户信息映射器
 *
 * @author zzj
 * @date 2023/02/22
 */
@Mapper
@Repository
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    @Select("select * from user_info where user_id = #{id}")
    public UserInfo getUserInfoById(int id);
    @Select("select count(*) from user_info")
    public Long getUserCount();
}
